<html>
<body>
<h2>Hello World!</h2>
</body>
<script>
    var msg = "{\"data\":{\"call\":{\"transferConnId\":\"\",\"userData\":null,\"mute\":\"Off\",\"monitoring\":false,\"uri\":\"\",\"callType\":\"Internal\",\"callUuid\":\"02AB98G828DH31548H0802LAES000045\",\"duration\":0,\"monitoredUserMuted\":false,\"path\":\"\",\"deviceUri\":\"\",\"connId\":\"007202c0aa79f078\",\"previousConnId\":\"\",\"dnis\":\"6005\",\"id\":\"\",\"state\":\"Ringing\",\"supervisorListeningIn\":false,\"stopCallType\":\"\",\"participants\":[]},\"messageName\":\"EventRinging\",\"extensions\":{\"BusinessCall\":\"0\",\"OriginationDN\":\"6006\",\"OriginationDN_location\":\"SIPSwitch\"},\"phoneNumber\":\"6006\",\"messageType\":\"CallStateChangeMessage\",\"errorMessage\":\"\",\"errorCode\":\"\",\"notificationType\":\"StatusChange\",\"referenceId\":0,\"thirdPartyRole\":\"\"},\"channel\":\"/v1/me/calls\",\"referenceId\":1134}";
    msg = eval('(' + msg + ')');
    alert(msg);
    var state = msg.data.call.state;
    if(state=="Released"){
        alert(msg.data.call.state+123);
    }
    var reseMsg = msg;
    alert(reseMsg.data.messageType);
</script>
</html>
